package com.ah.controller;

import com.ah.common.R;
import com.ah.request.LoginRequest;
import com.ah.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/user/login")
    public R login(@RequestBody LoginRequest request){
        return userService.login(request);
    }
}
